/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package HangHoa;

import java.util.Vector;

/**
 *
 * @author Tuan
 */
public class Giay extends SanPham{
    private int sizeGD;
    private String kieuDe;
    private String kieuQuai;
    private final String donVi="Đôi";

//Constructor
    public Giay(int sizeGD, String kieuDe, String kieuQuai, String maHH, String tenHH, String nhaSX, double giaNhap, double giaBan, String chatLieu) {
        super(maHH, tenHH, nhaSX, giaNhap, giaBan, chatLieu);
        this.sizeGD = sizeGD;
        this.kieuDe = kieuDe;
        this.kieuQuai = kieuQuai;
        this.setGhiChu();
    }

    public Giay() {
        super.setDonVi(donVi);
    }
     public Giay(String str[]){
        super(str);
        this.sizeGD = Integer.parseInt(str[10]);
        this.kieuDe =str[8];
        this.kieuQuai= str[9];
        this.setGhiChu();
    }

//Getter
    public int getSizeGD() {
        return sizeGD;
    }

    public String getKieuDe() {
        return kieuDe;
    }

    public String getKieuQuai() {
        return kieuQuai;
    }

    public String getDonVi() {
        return donVi;
    }

//Setter
    public void setSizeGD(int sizeGD) {
        this.sizeGD = sizeGD;
    }

    public void setKieuDe(String kieuDe) {
        this.kieuDe = kieuDe;
    }

    public void setKieuQuai(String kieuQuai) {
        this.kieuQuai = kieuQuai;
    }
    public void setGhiChu(){
         super.setGhiChu("Size GD:"+getSizeGD()+", Kiểu đế:"+getKieuDe()+", kiểu dây:" +getKieuQuai());
    }
}
